var mongoose = require("mongoose");
var Schema = mongoose.Schema;

var boardsSchema = new Schema(
  {
    title: { type: String, default: "" },
    content: { type: String, default: "" },
  },
  {
    timestamps: {
      createdAt: "create_time",
      updatedAt: "update_time",
    },
    versionKey: false,
  }
);

var boardsModel = mongoose.model("boards", boardsSchema);

module.exports = boardsModel;
